Skip to content

Fix concurrent OpenSSL header publication - #9

Merged
pinhopro merged 1 commit into
mainfrom
work/ci-openssl-header-publication
Nov 4, 2026
Merged

pinhopro merged 1 commit into
mainfrom
work/ci-openssl-header-publication

Conversation

@pinhopro

@pinhopro pinhopro commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Parallel builds could truncate a published OpenSSL header while another compiler had it mapped. A deterministic reproduction through the production publisher killed a mapped reader with SIGBUS and exposed an empty header to a real Clang consumer. This is consistent with the intermittent WASIp3 Beast compiler crash in run 41815132710, although the exact remote compiler stack was not reproduced locally.

Publish changed headers through an atomic replacement and leave identical headers untouched during archive installation. The separate header-producing action refreshes timestamps after successful preparation so B2 records changed prerequisites without rewriting mapped bytes. Document the invariant and add regressions for mapped readers, timestamps, permissions and failed copies.

Validation:

  • 14 OpenSSL builder tests and 7 source-verification tests passed; regression was observed failing before the fix.
  • Real native OpenSSL installation preserved prepared headers and a linked TLS consumer ran successfully.
  • Fresh WASIp3 Beast single-http-server-async-ssl build and execution returned HTTP 200 with the expected body; the canonical XML report passed.
  • Independent review confirmed that real B2 header regeneration settles after one action.
  • Pyright, Python text checks and b2 -a check-release passed.
  • The broader local provider suite is still running. Full remote CI remains required before merge.

The separate Ubuntu snapshot HTTP 503 failure is an infrastructure issue. This change does not weaken tests or alter publication policy.

@pinhopro
pinhopro merged commit dc33ba7 into main Nov 4, 2026
106 checks passed
@pinhopro
pinhopro deleted the work/ci-openssl-header-publication branch November 4, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant